package ai.minimax.entities;

public class Action {
	private int row;
	private int col;
	private Player player;
	
	public void setPlayer(Player player) {
		this.player = player;
	}

	public Action(int row, int col, Player player) {
		this.row = row;
		this.col = col;
		this.player = player;
	}

	@Override
	public boolean equals(Object obj){
		if(obj instanceof Action){
			Action action = (Action) obj;
			if(this.row == action.getRow() && this.col == action.getCol()){
				return true;
			}
		}
		return false;
	}
	
	public Player getPlayer() {
		return player;
	}
	
	public int getRow() {
		return row;
	}
	public int getCol() {
		return col;
	}
}
